package com.example.demo.service;


import com.example.demo.model.User;
import org.springframework.stereotype.Service;

@Service
public interface IUserService {

    void createUser(User user);
   User getUserByName(String username);
    boolean login(String username,String password);

    User getUserById(Long id);

    void addOneArticleById(Long id);

     void subOneArticleById(Long id);

     void modifyInfo(User user);

     void updatePassword(String Password, String newPassword,Long userId);
}
